package com.ajk.server.model.query;

import java.util.List;

/**
 * 护士站  <br>
 * dict_nurse_station <br>
 * v1.0 2016-05-01
 */
public class NurseStationDictQuery extends Paging {

	private static final long serialVersionUID = 1L;
	
	private Integer id;
	
	private String keyword;
	
	private Integer regionId;
	
	private Integer inUsed;

	private List<Integer> regionIds;

	//经度
	//longitude
	private Double longitude;

	//纬度
	//latitude
	private Double latitude;

	public List<Integer> getRegionIds() {
		return regionIds;
	}

	public void setRegionIds(List<Integer> regionIds) {
		this.regionIds = regionIds;
	}

	public Double getLongitude() {
		return longitude;
	}

	public void setLongitude(Double longitude) {
		this.longitude = longitude;
	}

	public Double getLatitude() {
		return latitude;
	}

	public void setLatitude(Double latitude) {
		this.latitude = latitude;
	}

	public Integer getRegionId() {
		return regionId;
	}

	public void setRegionId(Integer regionId) {
		this.regionId = regionId;
	}

	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}
	
	@Override
	public void dealWith() {
		super.dealWith();
		
		if(this.keyword!=null && this.keyword.trim().length()>0){
			if(!keyword.startsWith("%")){
				this.keyword = "%"+this.keyword;
			}
			if(!keyword.endsWith("%")){
				this.keyword = this.keyword+"%";
			}
		}else{
			this.keyword = null;
		}
		
	}

	public Integer getInUsed() {
		return inUsed;
	}

	public void setInUsed(Integer inUsed) {
		this.inUsed = inUsed;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
	
}	